package org.fast.easy.system.upms.mapper;

import org.apache.ibatis.annotations.Param;
import org.fast.easy.framework.mybatis.core.mapper.BaseMapperPlus;
import org.fast.easy.system.upms.domain.entity.SysUserShortcutMenu;
import org.fast.easy.system.upms.domain.vo.SysUserShortcutMenuVo;

import java.util.List;

/**
 * 类说明
 *
 * @author YanMing
 * @date 2024/6/18
 */
public interface SysUserShortcutMenuMapper{

    /**
     * 根据用户查询快捷菜单列表
     *
     * @param userId 用户ID
     * @return 菜单列表
     */
    List<SysUserShortcutMenuVo> selectShortcutMenuList(@Param("tenantId") String tenantId, @Param("userId")Long userId);


    SysUserShortcutMenu selectOne(@Param("tenantId")String tenantId, @Param("userId")Long userId, @Param("menuId")Long menuId);

    int insert(SysUserShortcutMenu menu);

    int update(SysUserShortcutMenu menu);

}
